// const baseurl = 'https://lengnuanit.top/api'
const baseurl = 'http://127.0.0.1:7001/api'

const $get = {
  getDynamicList:'/dynamic/getDynamicList',//获取动态列表
  getDynamicDetail:'/dynamic/getDynamicDetail',//获取动态详情
  getCommentList:'/comment/getCommentList',//获取动态评论列表
}
const $post = {
  postCode: '/user/wxsessionkey', //获取openid
  postLogin: '/user/wxauth', //小程序登录
  uploadFile: '/upload/uploadImage',//上传图片
  postDynamic:'/dynamic/addDynamic',//用户新增动态
  postComment:'/comment/addComment',//用户评论动态
  postLike:'/dynamic/addDynamicLike',//用户点赞动态
  // 微信支付测试
  postOrder:'/base/order'
}
const $put = {
  
}
const $delete = {
  
}
for (let i in $get) {
  $get[i] = baseurl + $get[i]
}
for (let i in $post) {
  $post[i] = baseurl + $post[i]
}
for (let i in $put) {
  $put[i] = baseurl + $put[i]
}
for (let i in $delete) {
  $delete[i] = baseurl + $delete[i]
}
export {
  $get,
  $post,
  $put,
  $delete
}